import React from "react";
import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import store from "./store/data";
import App from "./view/App";
import "./assets/css/style.css";

import Dati from "./view/Dati";
import Result from "./view/Result";

ReactDOM.render(
  <Provider store={store}>
    <Router>
      <Switch>
        <Route path="/" exact component={App}></Route>
        <Route path="/dati" exact component={Dati}></Route>
        <Route path="/result" exact component={Result}></Route>
      </Switch>
    </Router>
  </Provider>,
  document.getElementById("root")
);
